<?php

namespace App\Http\Controllers\Api\V1\GetRequest;

use App\Models\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class RefCodeController extends Controller
{
    public function index()
    {
        $refCode = \request('ref_code');
        $res = User::where('ref_code',$refCode)->exists();
        return $this->responseJson(0,$res,'success');
    }
}
